#include<stdio.h>
int main(){
    int age =0;
    scanf("%d",&age);
   if (age < 18){
    printf("lad");
}
   else
  { 
    if (age <= 44){
   printf("teenager") ;
  }

    else{
       if (age <= 59){
           printf("middle-aged and elderly people");
      } 
       else
        {
            if(age <= 89){
             printf("old people");
            }
            else
                 printf("god of longevity");
       }
    }
   }
   return 0;
  }